import request from '@/utils/request'

// 查询公寓规则列表
export function listTbrules(query) {
  return request({
    url: '/apartment/tbrules/list',
    method: 'get',
    params: query
  })
}

// 查询公寓规则详细
export function getTbrules(id) {
  return request({
    url: '/apartment/tbrules/' + id,
    method: 'get'
  })
}

// 新增公寓规则
export function addTbrules(data) {
  return request({
    url: '/apartment/tbrules',
    method: 'post',
    data: data
  })
}

// 修改公寓规则
export function updateTbrules(data) {
  return request({
    url: '/apartment/tbrules',
    method: 'put',
    data: data
  })
}

// 删除公寓规则
export function delTbrules(id) {
  return request({
    url: '/apartment/tbrules/' + id,
    method: 'delete'
  })
}
